package com.common.core.exception.code;


/**
 * @auther WuJun.Zhang
 * @date 2022/2/18 下午5:54
 */
public class SecurityErrorCode extends BaseErrorCode {

    public static SecurityErrorCode A_ACCESS_DENIED = new SecurityErrorCode(20101, "拒绝访问");
    public static SecurityErrorCode A_USERNAME_OR_PASSWORD_ERROR = new SecurityErrorCode(20102, "用户名或密码错误");
    public static SecurityErrorCode A_INVALID_GRANT = new SecurityErrorCode(20103, "无效的授权信息");
    public static SecurityErrorCode A_UNSUPPORTED_GRANT_TYPE = new SecurityErrorCode(20104, "不支持的授权类型");
    public static SecurityErrorCode A_INVALID_REQUEST = new SecurityErrorCode(20105, "无效的请求");
    public static SecurityErrorCode A_INVALID_SCOPE = new SecurityErrorCode(20106, "无效的授权范围");
    public static SecurityErrorCode A_HTTP_MEDIA_TYPE_NOT_SUPPORTED = new SecurityErrorCode(20107, "请求MediaType不支持");
    public static SecurityErrorCode A_INVALID_CLIENT_EXCEPTION = new SecurityErrorCode(20108, "无效的客户端信息");
    public static SecurityErrorCode A_USERNAME_NOT_FOUND_EXCEPTION = new SecurityErrorCode(20109, "用户不存在");
    public static SecurityErrorCode A_CLIENT_AUTHENTICATION_FAILED = new SecurityErrorCode(20100, "客户端认证失败");
    public static SecurityErrorCode A_CANNOT_ACCESS = new SecurityErrorCode(20111, "认证失败,不能访问");
    public static SecurityErrorCode A_INSUFFICIENT_AUTHENTICATION_ERROR = new SecurityErrorCode(20112, "身份验证信息不足");
    public static SecurityErrorCode A_VALIDATION_FAILED = new SecurityErrorCode(20113, "验证失败");
    public static SecurityErrorCode A_NULL_API = new SecurityErrorCode(20114, "无接口权限");
    public static SecurityErrorCode A_INTERNAL_AUTHENTICATION_SERVICE_EXCEPTION = new SecurityErrorCode(20115, "内部认证服务异常");
    public static SecurityErrorCode A_ACCESS_DENIED_API = new SecurityErrorCode(20116, "非法访问接口");
    public static SecurityErrorCode P_ERROR_PARAM_IS_NULL = new SecurityErrorCode(20117, "鉴权参数为空");
    public static SecurityErrorCode A_ACCOUNT_EXPIRED_EXCEPTION = new SecurityErrorCode(20118, "账户密码已过期");
    public static SecurityErrorCode A_CREDENTIALS_EXPIRED_EXCEPTION = new SecurityErrorCode(20119, "账户密码已过期");
    public static SecurityErrorCode A_DISABLED_EXCEPTION = new SecurityErrorCode(20120, "账户已禁用");
    public static SecurityErrorCode A_LOCKED_EXCEPTION = new SecurityErrorCode(20121, "账户已锁定");
    public static SecurityErrorCode A_INVALID_TOKEN_EXCEPTION = new SecurityErrorCode(20404, "Token无效,请重新认证");

    public SecurityErrorCode(int errNum, String errMsg) {
        super(errNum, errMsg);
    }
}
